import {
  Inject,
  Controller,
  Post,
  Body,
  // Get, Query
} from '@midwayjs/core';
import { Context } from '@midwayjs/koa';

import { JyLoginProService } from '../service/jyLoginPro.service';

@Controller('/a2adsajkas1bc2a/comm/')
export class APIController {
  @Inject()
  ctx: Context;
  @Inject()
  jyLoginProService: JyLoginProService;

  @Post('/push_active_queue')
  async pushActiveQueue(@Body('k') k: string) {
    return await this.jyLoginProService.pushTask(k);
  }
}
